package com.example.springtest.user.mapper;

import com.example.springtest.user.pojo.entity.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {

//登录
    User getUserByName(String username);
//注册用户
    void saveUser(User user);

    User getById(Integer id);

    int delete(Integer id);

    int edit(User user);
}
